# (Be in -*- python -*- mode.)

# Fix a problem with an invalid symbol by ignoring it using a
# SymbolMapper.

from cvs2svn_lib.symbol_transform import SymbolMapper

execfile('cvs2svn-example.options')

name = 'invalid-symbol'

ctx.output_option = NewRepositoryOutputOption(
    'cvs2svn-tmp/%s--options=cvs2svn-ignore.options-svnrepos' % (name,),
    )

run_options.clear_projects()

filename = 'test-data/%s-cvsrepos/file.txt,v' % (name,)
symbol_mapper = SymbolMapper([
    (filename, 'SYMBOL', '1', None),
    ])

run_options.add_project(
    r'test-data/%s-cvsrepos' % (name,),
    trunk_path='trunk',
    branches_path='branches',
    tags_path='tags',
    symbol_transforms=[
        symbol_mapper,
        ],
    symbol_strategy_rules=global_symbol_strategy_rules,
    )

